package com.goodluck.goodluckim.sdk.event;

import com.goodluck.goodluckim.db.model.IMMessage;

/**
 * 聊天消息分发管理
 * Created by wyj on 2018/9/13.
 */

public class MessageEvent extends Event {

    private IMMessage message;

    public MessageEvent(int eventType, IMMessage message) {
        super(eventType);
        this.message = message;
    }

    public IMMessage getMessage() {
        return message;
    }

    public class EventType {
        /**
         * 消息接收
         */
        public static final int RECEIVE_MESSAGE = 1;
        /**
         * 更新消息状态
         */
        public static final int UPDATE_MESSAGE_STATUS = 2;
    }
}
